package com.testdemo.web.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.testdemo.web.vo.LabResource;

public interface ResourceDao {
	public int insertLabResource(LabResource labResource);
	public int deleteLabResource(LabResource labResource);
	public int applyLabResource(LabResource labResource);
	public int getbackLabResource(@Param("resourceid")Integer resourceid);
	/**
	 * 借出
	 * @param resourceid
	 * @return
	 */
	public int checkOutLabResource(LabResource labResource);

	
	public List<LabResource> selectunusedResourcelist(@Param("labid") Integer labid);
	
	public List<LabResource> selectApplyResourceList(@Param("labid") Integer labid);
	
	public List<LabResource> selectResourceBorrowList(@Param("labid") Integer labid);
	
	public List<LabResource> selectResourceBorrowListByUsername(@Param("username")String username);
	
}
